package com.cy.ppj.dao.mapper.account;

import com.cy.ppj.model.domian.account.UserOrderInfo;
import com.cy.ppj.model.vo.front.account.UserLoanStatisticsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.Date;
import java.util.List;

@Mapper
public interface UserOrderInfoMapper extends BaseMapper<UserOrderInfo> {

    void addUserOrderInfo(UserOrderInfo userOrderInfo);

    List<UserLoanStatisticsVO> selectUserLoanMonthStatistics(@Param("userId") Long userId, @Param("startTime") Date startTime, @Param("endTime") Date endTime);

    List<UserLoanStatisticsVO> selectUserLoanQuarterStatistics(@Param("userId") Long userId, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
}
